# eric7.EricWidgets.EricSingleApplication

Module implementing the single application server and client.

### Global Attributes

SAArguments
SAFile
SAOpenFile
SAOpenMultiProject
SAOpenProject

### Classes

EricSingleApplicationClient | Class implementing the single application client of the IDE.
EricSingleApplicationServer | Class implementing the single application server embedded within the IDE.

### Functions

None

## EricSingleApplicationClient

Class implementing the single application client of the IDE.

### Derived from

SingleApplicationClient

### Class Attributes

None

### Class Methods

None

### Methods

EricSingleApplicationClient | Constructor
__openFile | Private method to open a file in the application server.
__openMultiProject | Private method to open a project in the application server.
__openProject | Private method to open a project in the application server.
__sendArguments | Private method to set the command arguments in the application server.
processArgs | Public method to process the command line args passed to the UI.

### Static Methods

None

#### EricSingleApplicationClient (Constructor)

EricSingleApplicationClient()

Constructor

#### EricSingleApplicationClient.__openFile

__openFile(fname)

Private method to open a file in the application server.

fname (str)
  name of file to be opened

#### EricSingleApplicationClient.__openMultiProject

__openMultiProject(pfname)

Private method to open a project in the application server.

pfname (str)
  name of the projectfile to be opened

#### EricSingleApplicationClient.__openProject

__openProject(pfname)

Private method to open a project in the application server.

pfname (str)
  name of the projectfile to be opened

#### EricSingleApplicationClient.__sendArguments

__sendArguments(argsStr)

Private method to set the command arguments in the application server.

argsStr (str)
  space delimited list of command args

#### EricSingleApplicationClient.processArgs

processArgs(args)

Public method to process the command line args passed to the UI.

args (argparse.Namespace)
  namespace object containing the parsed command line parameters

Up

## EricSingleApplicationServer

Class implementing the single application server embedded within the IDE.

### Derived from

SingleApplicationServer

### Class Attributes

None

### Class Methods

None

### Methods

EricSingleApplicationServer | Constructor
__saArguments | Private method used to handle the "Arguments" command.
__saOpenFile | Private method used to handle the "Open File" command.
__saOpenMultiProject | Private method used to handle the "Open Multi-Project" command.
__saOpenProject | Private method used to handle the "Open Project" command.
handleCommand | Public slot to handle the command sent by the client.

### Static Methods

None

#### EricSingleApplicationServer (Constructor)

EricSingleApplicationServer()

Constructor

#### EricSingleApplicationServer.__saArguments

__saArguments(argsStr)

Private method used to handle the "Arguments" command.

argsStr (str)
  space delimited list of command args

#### EricSingleApplicationServer.__saOpenFile

__saOpenFile(fname)

Private method used to handle the "Open File" command.

fname (str)
  filename to be opened

#### EricSingleApplicationServer.__saOpenMultiProject

__saOpenMultiProject(pfname)

Private method used to handle the "Open Multi-Project" command.

pfname (str)
  filename of the multi project to be opened

#### EricSingleApplicationServer.__saOpenProject

__saOpenProject(pfname)

Private method used to handle the "Open Project" command.

pfname (str)
  filename of the project to be opened

#### EricSingleApplicationServer.handleCommand

handleCommand(command, arguments)

Public slot to handle the command sent by the client.

command (str)
  command sent by the client
arguments (list of str)
  list of command arguments

Up